// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import Icon from 'vue-svg-icon/Icon.vue'
import './assets/css/base.css'
import store from './store'
import VueDND from 'awe-dnd'
import axios from 'libraries/axios'

Vue.use(axios, {
  unauthenticated: () => {
    store.commit('logout')
  }
})
Vue.use(VueDND)
Vue.component('icon', Icon)
Vue.config.productionTip = false
Vue.use(MintUI)
window.eventBus = new Vue()
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App />',
  components: {App}
})

window.router = router
